package com.zhijian.medical.service;

import com.zhijian.medical.entity.po.RotationRecords;
import com.zhijian.medical.entity.vo.request.RotationRecordsSaveOrUpdateVo;
import com.zhijian.medical.entity.vo.request.RotationRecordsSaveVo;
import com.zhijian.medical.entity.vo.request.RotationRecordsSearchVo;
import com.zhijian.medical.entity.vo.response.RotationRecordsVo;
import com.zhijian.util.page.Page;

import java.util.List;

/**
 * 职工个人轮岗记录 业务处理层
 *
 * @author auto
 * @version 1.0
 * @date 2024-11-14 14:20:26
 */
public interface RotationRecordsService {

    /**
    * 主键查询
    *
    * @param id
    * @return
    */
    RotationRecords selectById(Long id);

    /**
    * 主键查询vo
    *
    * @param id
    * @return
    */
    RotationRecordsVo selectVoById(Long id);

    /**
    * 按照主键删除
    *
    * @param id
    */
    void deleteById(Long id);

    /**
    * 按照主键批量删除
    *
    * @param idList
    */
    void deleteByIdList(List<Long> idList);

    /**
    * 新增
    *
    * @param rotationRecords
    * @return
    */
    Long insert(RotationRecords rotationRecords);

    /**
    * 动态新增
    *
    * @param rotationRecords
    * @return
    */
    Long insertSelective(RotationRecords rotationRecords);

    /**
    * 更改
    *
    * @param rotationRecords
    * @return
    */
    boolean update(RotationRecords rotationRecords);

    /**
    * 动态修改
    *
    * @param record
    * @return
    */
    boolean updateByPrimaryKeySelective(RotationRecords record);

    /**
    * 保存
    *
    * @param saveOrUpdateVo
    * @return
    */
    boolean save(RotationRecordsSaveOrUpdateVo saveOrUpdateVo);

    /**
     * 保存
     *
     * @param saveOrUpdateVo
     * @return
     */
    boolean saveList(RotationRecordsSaveVo saveOrUpdateVo);
    /**
    * 编辑
    *
    * @param saveOrUpdateVo
    * @return
    */
    boolean modify(RotationRecordsSaveOrUpdateVo saveOrUpdateVo);

    /**
    * 列表
    *
    * @param rotationRecordsSearchVo
    * @return
    */
    RotationRecordsVo selectOne(RotationRecordsSearchVo rotationRecordsSearchVo);

    /**
    * 总数
    *
    * @param rotationRecordsSearchVo
    * @return
    */
    Integer count(RotationRecordsSearchVo rotationRecordsSearchVo);

    /**
    * 列表
    *
    * @param rotationRecordsSearchVo
    * @return
    */
    List<RotationRecordsVo> selectList(RotationRecordsSearchVo rotationRecordsSearchVo);

    /**
    * 分页查询
    *
    * @param rotationRecordsSearchVo
    * @return
    */
    Page<RotationRecordsVo> selectPage(RotationRecordsSearchVo rotationRecordsSearchVo);

    /**
    * 批量新增数据（MyBatis原生foreach方法）
    *
    * @param entities 实例对象列表
    * @return 影响行数
    */
    boolean insertBatch(List<RotationRecords> entities);

    /**
    * 动态删除，慎重用此方法！！
    *
    * @param rotationRecordsSearchVo
    * @return
    */
    void deleteByCondition(RotationRecordsSearchVo rotationRecordsSearchVo);
}